/**
 * Candidate number: 35834
 * A singleton class which communicates game data and sequencer state to central pool.
 * 
 */
package tv.starfu;

public class Switchboard {
    
    // Player data
    
    
    
    // Multithreading
    private volatile static Switchboard switchboard;
    
    private Switchboard() { };
    
    public static Switchboard getSwitchboard() {
        // Check for an instance
        if (switchboard == null) {
            // Enter synchronized block (first time only)
            synchronized (Switchboard.class) {
                // If null, create an instance
                if (switchboard == null) {
                    switchboard = new Switchboard();
                }
            }
        }
        return switchboard;
    }
    
}
